//
//  GADMasterViewController.h
//  TabBarLayoutExample
//
//  Copyright 2010 Google Inc. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "GADAdSenseParameters.h"
#import "GADAdViewController.h"


// A convenience class for our view controllers that wish to support AFMA ads
// to inherit from.
// This class requires that the app delegate implements
//  GADMasterViewControllerDelegate
// It inserts the ad view in 'viewDidLoad' at the top of the view's subview
//  array.
@interface GADMasterViewController : UIViewController <
    GADAdViewControllerDelegate> {
  GADAdViewController *adViewController;
  BOOL isAdLoaded;
  BOOL didCloseWebsiteView;
}

@property(nonatomic, retain) GADAdViewController *adViewController;
@property(nonatomic, assign) BOOL isAdLoaded;
@property(nonatomic, assign) BOOL didCloseWebsiteView;

- (UIViewController *)viewControllerForModalPresentation:
    (GADAdViewController *)adController;

@end


@protocol GADMasterViewControllerDelegate <NSObject>

- (GADAdViewController *)getAdViewController;

@end
